Function: compressutil

CALL:

out = compressutil(in, modus, level)

DESCRIPTION:

In memory compression utility.

INPUT:

in int8[]|uint8[]|char[]
Array of any size of class int8, uint8 or char
modus string
'compress'   ==> compress data
'uncompress' ==> uncompress data
level number
the compression level (0-9)

OUTPUT:

out int8[]
compressed byte array.